package org.jeecg.modules.door.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.door.entity.LwgyDoorCard;
import org.jeecg.modules.door.entity.LwgyDoorUploadsetting;
import org.jeecg.modules.door.mapper.LwgyDoorCardMapper;
import org.jeecg.modules.door.service.ILwgyDoorCardService;
import org.springframework.stereotype.Service;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Description: ic卡设置
 * @Author: jeecg-boot
 * @Date:   2023-08-08
 * @Version: V1.0
 */
@Service
public class LwgyDoorCardServiceImpl extends ServiceImpl<LwgyDoorCardMapper, LwgyDoorCard> implements ILwgyDoorCardService {
	
	@Autowired
	private LwgyDoorCardMapper lwgyDoorCardMapper;
	
	@Override
	public List<LwgyDoorCard> selectByMainId(String mainId) {
		return lwgyDoorCardMapper.selectByMainId(mainId);
	}


	@Override
	public IPage<LwgyDoorCard> queryStuCardList(Page<LwgyDoorCard> page, QueryWrapper<LwgyDoorCard> queryWrapper) {
		queryWrapper.orderByAsc("building_name","unit_name","layer_name","room_name");
		return page.setRecords(lwgyDoorCardMapper.queryStuCardList(page,queryWrapper));
	}
}
